package com.me.study.javaCore.classLoader;

import org.junit.Test;

import static org.junit.Assert.*;

/**
 * @author ME
 * @date 2021/9/7
 */
public class TestClassApi {

    @Test
    public void isAssignableFrom() {
        assertTrue("Object 是 String 的父类", Object.class.isAssignableFrom(String.class));
        assertTrue("String 是 String 的本身", String.class.isAssignableFrom(String.class));
    }

}
